import axios from '@/libs/api.request'

// 获取热门产品
export const getHotProductsList = (pageId) => {
  return axios.request({
    url: 'Goods/getHotProductsList',
    data: {pageId},
    method: 'post'
  })
}

// 获取更多产品信息
export const getGoodsList = (pageId) => {
  return axios.request({
    url: 'Goods/getGoodsList',
    data: {pageId},
    method: 'post'
  })
}

// 获取产品信息详情
export const getGoodsDetail = (id) => {
  return axios.request({
    url: 'Goods/getGoodsDetail',
    data: {id},
    method: 'post'
  })
}

// export const getGoodsDetail = (id) => {
//   return axios.request({
//     url: 'Goods/getGoodsDetail',
//     data: {id},
//     method: 'post'
//   })
// }
